﻿<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
  
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>Class BitmapHelper
   </title>
    <meta name="viewport" content="width=device-width">
    <meta name="title" content="Class BitmapHelper
   ">
    <meta name="generator" content="docfx 2.40.12.0">
    
    <link rel="shortcut icon" href="../images/favicon.ico">
    <link rel="stylesheet" href="../styles/docfx.vendor.css">
    <link rel="stylesheet" href="../styles/docfx.css">
    <link rel="stylesheet" href="../styles/main.css">
    <meta property="docfx:navrel" content="../toc.html">
    <meta property="docfx:tocrel" content="toc.html">
    
    <meta property="docfx:rel" content="../">
    
  </head>
  <body data-spy="scroll" data-target="#affix" data-offset="120">
    <div id="wrapper">
      <header>
        
        <nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
          <div class="container">
            <div class="navbar-header">
              <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
              </button>
              
              <a class="navbar-brand" href="../index.html">
                <img id="logo" class="svg" src="../images/logo.svg" alt="">
              </a>
            </div>
            <div class="collapse navbar-collapse" id="navbar">
              <form class="navbar-form navbar-right" role="search" id="search">
                <div class="form-group">
                  <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
                </div>
              </form>
            </div>
          </div>
        </nav>
        
        <div class="subnav navbar navbar-default">
          <div class="container hide-when-search" id="breadcrumb">
            <ul class="breadcrumb">
              <li></li>
            </ul>
          </div>
        </div>
      </header>
      <div class="container body-content">
        
        <div id="search-results">
          <div class="search-list"></div>
          <div class="sr-items">
            <p><i class="glyphicon glyphicon-refresh index-loading"></i></p>
          </div>
          <ul id="pagination"></ul>
        </div>
      </div>
      <div role="main" class="container body-content hide-when-search">
        
        <div class="sidenav hide-when-search">
          <a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
          <div class="sidetoggle collapse" id="sidetoggle">
            <div id="sidetoc"></div>
          </div>
        </div>
        <div class="article row grid-right">
          <div class="col-md-10">
            <article class="content wrap" id="_content" data-uid="Mapsui.Rendering.Skia.BitmapHelper">
  
  
  <h1 id="Mapsui_Rendering_Skia_BitmapHelper" data-uid="Mapsui.Rendering.Skia.BitmapHelper" class="text-break">Class BitmapHelper
  </h1>
  <div class="markdown level0 summary"></div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><span class="xref">System.Object</span></div>
    <div class="level1"><span class="xref">BitmapHelper</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="Mapsui.Rendering.Skia.html">Mapsui.Rendering.Skia</a></h6>
  <h6><strong>Assembly</strong>: Mapsui.Rendering.Skia.dll</h6>
  <h5 id="Mapsui_Rendering_Skia_BitmapHelper_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static class BitmapHelper : object</code></pre>
  </div>
  <h3 id="methods">Methods
  </h3>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/Mapsui/Mapsui/new/master/apiSpec/new?filename=Mapsui_Rendering_Skia_BitmapHelper_LoadBitmap_System_Object_.md&amp;value=---%0Auid%3A%20Mapsui.Rendering.Skia.BitmapHelper.LoadBitmap(System.Object)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/Mapsui/Mapsui/blob/master/Mapsui.Rendering.Skia/BitmapHelper.cs/#L14">View Source</a>
  </span>
  <a id="Mapsui_Rendering_Skia_BitmapHelper_LoadBitmap_" data-uid="Mapsui.Rendering.Skia.BitmapHelper.LoadBitmap*"></a>
  <h4 id="Mapsui_Rendering_Skia_BitmapHelper_LoadBitmap_System_Object_" data-uid="Mapsui.Rendering.Skia.BitmapHelper.LoadBitmap(System.Object)">LoadBitmap(Object)</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static BitmapInfo LoadBitmap(object bitmapStream)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Object</span></td>
        <td><span class="parametername">bitmapStream</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="Mapsui.Rendering.Skia.BitmapInfo.html">BitmapInfo</a></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/Mapsui/Mapsui/new/master/apiSpec/new?filename=Mapsui_Rendering_Skia_BitmapHelper_RenderBitmap_SKCanvas_SKImage_SKRect_System_Single_.md&amp;value=---%0Auid%3A%20Mapsui.Rendering.Skia.BitmapHelper.RenderBitmap(SKCanvas%2CSKImage%2CSKRect%2CSystem.Single)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/Mapsui/Mapsui/blob/master/Mapsui.Rendering.Skia/BitmapHelper.cs/#L136">View Source</a>
  </span>
  <a id="Mapsui_Rendering_Skia_BitmapHelper_RenderBitmap_" data-uid="Mapsui.Rendering.Skia.BitmapHelper.RenderBitmap*"></a>
  <h4 id="Mapsui_Rendering_Skia_BitmapHelper_RenderBitmap_SKCanvas_SKImage_SKRect_System_Single_" data-uid="Mapsui.Rendering.Skia.BitmapHelper.RenderBitmap(SKCanvas,SKImage,SKRect,System.Single)">RenderBitmap(SKCanvas, SKImage, SKRect, Single)</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static void RenderBitmap(SKCanvas canvas, SKImage bitmap, SKRect rect, float opacity = 1F)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">SKCanvas</span></td>
        <td><span class="parametername">canvas</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">SKImage</span></td>
        <td><span class="parametername">bitmap</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">SKRect</span></td>
        <td><span class="parametername">rect</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.Single</span></td>
        <td><span class="parametername">opacity</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/Mapsui/Mapsui/new/master/apiSpec/new?filename=Mapsui_Rendering_Skia_BitmapHelper_RenderBitmap_SKCanvas_SKImage_System_Single_System_Single_System_Single_System_Single_System_Single_Mapsui_Styles_LabelStyle_HorizontalAlignmentEnum_Mapsui_Styles_LabelStyle_VerticalAlignmentEnum_System_Single_System_Single_.md&amp;value=---%0Auid%3A%20Mapsui.Rendering.Skia.BitmapHelper.RenderBitmap(SKCanvas%2CSKImage%2CSystem.Single%2CSystem.Single%2CSystem.Single%2CSystem.Single%2CSystem.Single%2CMapsui.Styles.LabelStyle.HorizontalAlignmentEnum%2CMapsui.Styles.LabelStyle.VerticalAlignmentEnum%2CSystem.Single%2CSystem.Single)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/Mapsui/Mapsui/blob/master/Mapsui.Rendering.Skia/BitmapHelper.cs/#L44">View Source</a>
  </span>
  <a id="Mapsui_Rendering_Skia_BitmapHelper_RenderBitmap_" data-uid="Mapsui.Rendering.Skia.BitmapHelper.RenderBitmap*"></a>
  <h4 id="Mapsui_Rendering_Skia_BitmapHelper_RenderBitmap_SKCanvas_SKImage_System_Single_System_Single_System_Single_System_Single_System_Single_Mapsui_Styles_LabelStyle_HorizontalAlignmentEnum_Mapsui_Styles_LabelStyle_VerticalAlignmentEnum_System_Single_System_Single_" data-uid="Mapsui.Rendering.Skia.BitmapHelper.RenderBitmap(SKCanvas,SKImage,System.Single,System.Single,System.Single,System.Single,System.Single,Mapsui.Styles.LabelStyle.HorizontalAlignmentEnum,Mapsui.Styles.LabelStyle.VerticalAlignmentEnum,System.Single,System.Single)">RenderBitmap(SKCanvas, SKImage, Single, Single, Single, Single, Single, LabelStyle.HorizontalAlignmentEnum, LabelStyle.VerticalAlignmentEnum, Single, Single)</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static void RenderBitmap(SKCanvas canvas, SKImage bitmap, float x, float y, float rotation = null, float offsetX = null, float offsetY = null, LabelStyle.HorizontalAlignmentEnum horizontalAlignment = default(LabelStyle.HorizontalAlignmentEnum), LabelStyle.VerticalAlignmentEnum verticalAlignment = default(LabelStyle.VerticalAlignmentEnum), float opacity = 1F, float scale = 1F)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">SKCanvas</span></td>
        <td><span class="parametername">canvas</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">SKImage</span></td>
        <td><span class="parametername">bitmap</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.Single</span></td>
        <td><span class="parametername">x</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.Single</span></td>
        <td><span class="parametername">y</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.Single</span></td>
        <td><span class="parametername">rotation</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.Single</span></td>
        <td><span class="parametername">offsetX</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.Single</span></td>
        <td><span class="parametername">offsetY</span></td>
        <td></td>
      </tr>
      <tr>
        <td><a class="xref" href="Mapsui.Styles.LabelStyle.HorizontalAlignmentEnum.html">LabelStyle.HorizontalAlignmentEnum</a></td>
        <td><span class="parametername">horizontalAlignment</span></td>
        <td></td>
      </tr>
      <tr>
        <td><a class="xref" href="Mapsui.Styles.LabelStyle.VerticalAlignmentEnum.html">LabelStyle.VerticalAlignmentEnum</a></td>
        <td><span class="parametername">verticalAlignment</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.Single</span></td>
        <td><span class="parametername">opacity</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.Single</span></td>
        <td><span class="parametername">scale</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/Mapsui/Mapsui/new/master/apiSpec/new?filename=Mapsui_Rendering_Skia_BitmapHelper_RenderRaster_SKCanvas_SKImage_SKRect_System_Single_.md&amp;value=---%0Auid%3A%20Mapsui.Rendering.Skia.BitmapHelper.RenderRaster(SKCanvas%2CSKImage%2CSKRect%2CSystem.Single)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/Mapsui/Mapsui/blob/master/Mapsui.Rendering.Skia/BitmapHelper.cs/#L114">View Source</a>
  </span>
  <a id="Mapsui_Rendering_Skia_BitmapHelper_RenderRaster_" data-uid="Mapsui.Rendering.Skia.BitmapHelper.RenderRaster*"></a>
  <h4 id="Mapsui_Rendering_Skia_BitmapHelper_RenderRaster_SKCanvas_SKImage_SKRect_System_Single_" data-uid="Mapsui.Rendering.Skia.BitmapHelper.RenderRaster(SKCanvas,SKImage,SKRect,System.Single)">RenderRaster(SKCanvas, SKImage, SKRect, Single)</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static void RenderRaster(SKCanvas canvas, SKImage bitmap, SKRect rect, float layerOpacity)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">SKCanvas</span></td>
        <td><span class="parametername">canvas</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">SKImage</span></td>
        <td><span class="parametername">bitmap</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">SKRect</span></td>
        <td><span class="parametername">rect</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.Single</span></td>
        <td><span class="parametername">layerOpacity</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/Mapsui/Mapsui/new/master/apiSpec/new?filename=Mapsui_Rendering_Skia_BitmapHelper_RenderSvg_SKCanvas_SkiaSharp_Extended_Svg_SKSvg_System_Single_System_Single_System_Single_System_Single_System_Single_Mapsui_Styles_LabelStyle_HorizontalAlignmentEnum_Mapsui_Styles_LabelStyle_VerticalAlignmentEnum_System_Single_System_Single_.md&amp;value=---%0Auid%3A%20Mapsui.Rendering.Skia.BitmapHelper.RenderSvg(SKCanvas%2CSkiaSharp.Extended.Svg.SKSvg%2CSystem.Single%2CSystem.Single%2CSystem.Single%2CSystem.Single%2CSystem.Single%2CMapsui.Styles.LabelStyle.HorizontalAlignmentEnum%2CMapsui.Styles.LabelStyle.VerticalAlignmentEnum%2CSystem.Single%2CSystem.Single)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/Mapsui/Mapsui/blob/master/Mapsui.Rendering.Skia/BitmapHelper.cs/#L74">View Source</a>
  </span>
  <a id="Mapsui_Rendering_Skia_BitmapHelper_RenderSvg_" data-uid="Mapsui.Rendering.Skia.BitmapHelper.RenderSvg*"></a>
  <h4 id="Mapsui_Rendering_Skia_BitmapHelper_RenderSvg_SKCanvas_SkiaSharp_Extended_Svg_SKSvg_System_Single_System_Single_System_Single_System_Single_System_Single_Mapsui_Styles_LabelStyle_HorizontalAlignmentEnum_Mapsui_Styles_LabelStyle_VerticalAlignmentEnum_System_Single_System_Single_" data-uid="Mapsui.Rendering.Skia.BitmapHelper.RenderSvg(SKCanvas,SkiaSharp.Extended.Svg.SKSvg,System.Single,System.Single,System.Single,System.Single,System.Single,Mapsui.Styles.LabelStyle.HorizontalAlignmentEnum,Mapsui.Styles.LabelStyle.VerticalAlignmentEnum,System.Single,System.Single)">RenderSvg(SKCanvas, SkiaSharp.Extended.Svg.SKSvg, Single, Single, Single, Single, Single, LabelStyle.HorizontalAlignmentEnum, LabelStyle.VerticalAlignmentEnum, Single, Single)</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static void RenderSvg(SKCanvas canvas, SkiaSharp.Extended.Svg.SKSvg svg, float x, float y, float orientation = null, float offsetX = null, float offsetY = null, LabelStyle.HorizontalAlignmentEnum horizontalAlignment = default(LabelStyle.HorizontalAlignmentEnum), LabelStyle.VerticalAlignmentEnum verticalAlignment = default(LabelStyle.VerticalAlignmentEnum), float opacity = 1F, float scale = 1F)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">SKCanvas</span></td>
        <td><span class="parametername">canvas</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">SkiaSharp.Extended.Svg.SKSvg</span></td>
        <td><span class="parametername">svg</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.Single</span></td>
        <td><span class="parametername">x</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.Single</span></td>
        <td><span class="parametername">y</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.Single</span></td>
        <td><span class="parametername">orientation</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.Single</span></td>
        <td><span class="parametername">offsetX</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.Single</span></td>
        <td><span class="parametername">offsetY</span></td>
        <td></td>
      </tr>
      <tr>
        <td><a class="xref" href="Mapsui.Styles.LabelStyle.HorizontalAlignmentEnum.html">LabelStyle.HorizontalAlignmentEnum</a></td>
        <td><span class="parametername">horizontalAlignment</span></td>
        <td></td>
      </tr>
      <tr>
        <td><a class="xref" href="Mapsui.Styles.LabelStyle.VerticalAlignmentEnum.html">LabelStyle.VerticalAlignmentEnum</a></td>
        <td><span class="parametername">verticalAlignment</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.Single</span></td>
        <td><span class="parametername">opacity</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.Single</span></td>
        <td><span class="parametername">scale</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
</article>
          </div>
          
          <div class="hidden-sm col-md-2" role="complementary">
            <div class="sideaffix">
              <div class="contribution">
                <ul class="nav">
                  <li>
                    <a href="https://github.com/Mapsui/Mapsui/new/master/apiSpec/new?filename=Mapsui_Rendering_Skia_BitmapHelper.md&amp;value=---%0Auid%3A%20Mapsui.Rendering.Skia.BitmapHelper%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A" class="contribution-link">Improve this Doc</a>
                  </li>
                  <li>
                    <a href="https://github.com/Mapsui/Mapsui/blob/master/Mapsui.Rendering.Skia/BitmapHelper.cs/#L8" class="contribution-link">View Source</a>
                  </li>
                </ul>
              </div>
              <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
              <!-- <p><a class="back-to-top" href="#top">Back to top</a><p> -->
              </nav>
            </div>
          </div>
        </div>
      </div>
      
      <footer>
        <div class="grad-bottom"></div>
        <div class="footer">
          <div class="container">
            <span class="pull-right">
              <a href="#top">Back to top</a>
            </span>
            
            <span>Generated by <strong>DocFX</strong></span>
          </div>
        </div>
      </footer>
    </div>
    
    <script type="text/javascript" src="../styles/docfx.vendor.js"></script>
    <script type="text/javascript" src="../styles/docfx.js"></script>
    <script type="text/javascript" src="../styles/main.js"></script>
  </body>
</html>
